from .memcache import db as mc

# 缓存工具类
class Cache():
    
    # 单例模式
    __instance = None
    
    @staticmethod
    def getInstance():
        if Cache.__instance is None:
            Cache.__instance = mc
        return Cache.__instance